package com.lou.enity;

import com.lou.annotation.Init;
import com.lou.annotation.Validate;

/**
 * @author : ljl
 * @date 创建时间：2018年9月11日 上午9:59:45
 * @version 1.0
 * @parameter
 * @since
 * @return
 */
public class User {

	@Validate(min = 2, max = 15)
	private String name;
	
	@Validate(isNotNull = false)
	private String age;
	
	
	public User(){
		this.name="loujielong";
		this.age="12";
	}

	public String getName() {
		return name;
	}

	@Init("loujielong")
	public void setName(String name) {
		this.name = name;
	}

	public String getAge() {
		return age;
	}

	@Init("22")
	public void setAge(String age) {
		this.age = age;
	}

}
